import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

public class Demo2 {
    public static void main(String[] args) {
        try(InputStream inputStream =  new FileInputStream("Hello World.txt")) {
            while(true) {
                int a = inputStream.read();
                if(a == -1) {
                    break;
                }
                System.out.printf(a + " ");
            }
        }catch(IOException e) {
            e.printStackTrace();
        }
    }
}
